package com.project.class3_28.bean;

import java.io.Serializable;
import java.time.LocalDate;

@Table("t_student")
public class StudentBean {
    @Column("pk_studentId")
    @Id
    private int id;
    @Column("s_name")
    private String studentName;
    @Column("s_sex")
    private String sex;
    @Column("s_phone")
    private String phone;
    @Column("s_birthday")
    private LocalDate birthday;
    @Column("s_email")
    private String email;

    public StudentBean(String studentName, String sex, String phone, LocalDate birthday, String email) {
        this.studentName = studentName;
        this.sex = sex;
        this.phone = phone;
        this.birthday = birthday;
        this.email = email;
    }

    public StudentBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "id=" + id +
                ", studentName='" + studentName + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", birthday=" + birthday +
                ", email='" + email + '\'' +
                "\n";
    }
}
